namespace AutoChess
{
    public class Singleton<T> where T:new()
    {
        private static T _ins;

        public static T Instance
        {
            get
            {
                if (_ins == null)
                {
                    _ins = new T();
                }

                return _ins;
            }
        }

    }
}